package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.StrategyTag;
import cn.wolfcode.luowowo.common.query.StrategyTagQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyTagMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyTag record);

    StrategyTag selectByPrimaryKey(Long id);

    List<StrategyTag> selectAll();

    int updateByPrimaryKey(StrategyTag record);


    List<StrategyTag> selectForList(StrategyTagQueryObject qo);

    void insertRalationDetailAndTag(@Param("tagId") Long tagId, @Param("detailId") Long detailId);

    void deleteRelationDetailAndTagByDetailId(Long detailId);

    String selectTagsByDetailId(Long detailId);

}